﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddActuals.aspx.cs" Inherits="Actuals.AddActuals" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <base target="_self" />
 <link href="~/Actuals.css" rel="stylesheet" type="text/css" />
    <link href="~/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <title></title>
      <script type="text/javascript" src="<%= ResolveUrl("~/Scripts/jquery.js") %>"></script>
    <script type="text/javascript" src="<%= ResolveUrl("~/Scripts/jquery.ui.datepicker.js") %>"></script>
    <script type="text/javascript" src="<%= ResolveUrl("~/Scripts/jquery.ui.core.js") %>"></script>
   <script type="text/javascript">
       $(document).ready(function () {
           $("#<%=txtActualDate.ClientID %>").datepicker({ dateFormat: 'mm-dd-yy', changeMonth: true, changeYear: true, yearRange: '2011:2013' });
      

       });
    </script>
   
</head>
<body>
    <form id="form1" runat="server">
    <center>
    <div>
            <asp:Label ID="Label6" runat="server" CssClass="ParaTitle">Add Actuals </asp:Label>
        </div>

     <div id="divAddActual" runat="server">
              <asp:Label ID="lblMsg" runat="server" CssClass="message"></asp:Label>
            <table>
            <tr>
                            <td>
                                <asp:Label ID="lblProject" runat="server" CssClass="label">Project</asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlProject" runat="server" CssClass="textfield" AutoPostBack="true"
                                    OnSelectedIndexChanged="ddlProject_OnSelectedIndexChanged">
                                </asp:DropDownList>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ErrorMessage="*" ControlToValidate="ddlProject" InitialValue="Select"></asp:RequiredFieldValidator>

                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblRelease" runat="server" CssClass="label">Release</asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="ddlRelease" runat="server" CssClass="textfield " 
                                AutoPostBack="true" OnSelectedIndexChanged="ddlRelease_OnSelectedIndexChanged">
                                </asp:DropDownList>
                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ErrorMessage="*" ControlToValidate="ddlRelease" InitialValue="Select"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblTasks" runat="server" CssClass="label"> Task </asp:Label>
                    </td>
                    <td align="left" >
                        <asp:DropDownList ID="ddlTask" runat="server" CssClass="textfield" OnSelectedIndexChanged  = "ddlTask_OnSelectedIndexChanged" AutoPostBack="true">
                        </asp:DropDownList>
                           <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                ErrorMessage="*" ControlToValidate="ddlTask" InitialValue="Select"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                 <tr>
                    <td>
                        <asp:Label ID="Label2" runat="server" CssClass="label"> Sub Task </asp:Label>
                    </td>
                    <td align="left" >
                        <asp:DropDownList ID="ddlSubTask" runat="server" CssClass="textfield">
                        </asp:DropDownList>
                    </td>
                    </tr>
                    <tr>
                     <td>
                        <asp:Label ID="Label5" runat="server" CssClass="label"> BA Sub Task </asp:Label>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddlBASubTask" runat="server" CssClass="textfield">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" CssClass="label"> Description </asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtDescription" Rows="10" Columns="50" runat="server" TextMode="MultiLine"
                            CssClass="textfield"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label3" runat="server" CssClass="label"> Date </asp:Label>
                    </td>
                    <td class="labelRequiredField">
                        <asp:TextBox ID="txtActualDate" CssClass="textfield" runat="server"></asp:TextBox> * (MM-dd-yyyy)
                        <asp:RequiredFieldValidator ID="rfvActualDate" ControlToValidate="txtActualDate" runat="server"></asp:RequiredFieldValidator>
                        
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="Label4" runat="server" CssClass="label"> No Of Hours </asp:Label> 
                    </td>
                    <td class="labelRequiredField">
                        <asp:TextBox ID="txtNoOfHours" CssClass="textfield" runat="server"></asp:TextBox> *
                        <asp:RequiredFieldValidator ID="rfvNoOfHours" ControlToValidate="txtNoOfHours" runat="server" ErrorMessage="required"></asp:RequiredFieldValidator>
                        <asp:RangeValidator ID="rafvNoOfours" ControlToValidate="txtNoOfHours" runat="server" MaximumValue="8" MinimumValue="0.5" ErrorMessage="value must be > 0.5 <8"></asp:RangeValidator>

                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="btnSave"  Text="Save" OnClick="btnSave_Click" runat="server">
                            </asp:Button>
                        <input type="button" value="Close" onclick="window.close();" />
                    </td>
                </tr>
            </table>
        </div>
        <asp:HiddenField ID="hidActualId" runat="server" />
        </center>
    </form>
</body>
</html>
